<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<style>
		div {
			height: 100px;
			width: 100px;
			border: 1px solid red;
			overflow: hidden;
			margin: 50px auto;
		}
		img {
			transition: all 1s;    /*谁变化过渡效果就给谁*/
		}
		div:hover img {
			transform: scale(2); /*0-0.99为缩小 大于1为放大*/
		}
	</style>
</head>
<body>
	<div>
		<img src="img/taobao.jpg" alt="">
	</div>
</body>
</html>